//
//  VideoSwapTool.h
//  AVPlayerTest
//
//  Created by feng on 16/8/31.
//  Copyright © 2016年 冯宝东. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import "ViewController.h"
@interface VideoSwapTool : NSObject
@property (nonatomic,weak) id<AVCaptureMetadataOutputObjectsDelegate>delegate;


@property (nonatomic,strong)AVCaptureSession*videoSession;
@property (nonatomic,strong)AVCaptureDevice* videoDevice;
@property (nonatomic,strong)AVCaptureDeviceInput*inputDevice;
@property (nonatomic,strong)AVCaptureVideoDataOutput*outDevice;
@property (nonatomic,strong)AVCaptureVideoPreviewLayer*previewLayer;
@property (nonatomic,strong)AVCaptureMetadataOutput *output;

/**
 *      @author 冯宝东
 *
 *      初始化一个录像设备
 */
-(void)setupOneVideoCapture;

@end
